|
Oracle® Rules Palette Release 9.1.0.0.0 E15811-01 |
General sequence of the transaction elements should be:
EffectiveDate
Allocations (if applicable)
Suspense
Withholding
Valuation (if applicable)
Fields
Events
Validation
Math
Within the <Math> section, any MathVariable constants should come first.
Assignments (if applicable)
ActivityAmounts (if applicable)
MultiFields
Spawns
Syntax standards according to the General Structure
EffectiveDate
The EffectiveDate element should be the first tag in a transaction.
The EffectiveDate
of spawned transactions, when that spawned activity is only ever SYSTEM
generated, should be Disabled.
Allocations
Allocation order of elements should be:
FundAllocation
AllocationFrom
Allocation
DefaultAllocation
Suspense
Use
the OVERRIDABLE
attribute to allow users to bypass suspense requirements.
Withholding
When withholding is
needed, use the <Withholding>
</Withholding> tags instead of creating fields for withholding.
Valuation
Do not include the
<Valuation>
tag in a transaction, if valuation is not necessary.
Fields
The order of field tags is:
<Name>
<Display>
<ToolTip>
<DataType>
<Query>
<Calculated>
<DefaultValue>
<RoleAssignments>
<Tag>
<Disabled>
<Hidden>
The <DefaultValue> tag or <Calculated> tag may not be present at the same time. Use one or the other.
If a field is hidden, do not include a <Disabled> tag.
If a field is not hidden, do not include <Hidden> tag.
If a field is not disabled, do not include <Disabled> tag.
Hidden fields that are independent of other fields should be placed at the end of the <Fields> section.
Except if the value of a hidden field is needed in a following field.
Suggestions for field names are listed below. This applies to MathVariable names as well.
Capitalize the first letter of each word.
Example: DateOfDeath not DateofDeath.
Exception is the use of upper case in SQL reserved words.
Exception is the use of upper case for Validation error messages that appear to the user.
Do not use spaces or underscores.
Example: DateOfBirth not Date_of_Birth.
Do not abbreviate unless the resulting word is extremely long. In that case, abbreviate but retain the meaning of word.
Examples: PolicyAnniversary not PolAnniv. NextMonRemainIssueChg for NextMonthaversaryRemainingIssueCharge.
Add abbreviated words to the Data Dictionary so that the meaning remains clear.
Field name and display value should be the same if possible.
Example: <Name>IssueDate</Name>, <Display>Issue Date</Display> not <Display>Date of Issue</Display>.
Filler fields should be blank for the display and DataType.
Combo boxes and radio buttons:
In a combo box, start with 00 for the value followed by 01, 02, etc.
Always use a two-digit format: 00, 01, 02, 03, etc.
The 00 value should always stand for a not applicable value or for a Select an Option value in a combo box.
It may not always make sense to start off a combo box with a 00 value. Please use your judgment or consult your Lead B.A.
A combo box with a defaulted selection or one whose entry is non-required should not have a 00 selection.
Radio buttons should have a 00 value for the negative response and 01 for the affirmative response.
The above bullet point can apply to a combo
box as well.
Math
When defining the TYPE for a MathVariable use:
VALUE if setting a MathVariable to a constant, whether it is a numeric or non-numeric constant.
FIELD if defining the MathVariable to a variable from the <Fields> section or if redefining another MathVariable.
FUNCTION if using a function without an additional operation.
When defining the constant of Checked or UnChecked, the values should always be either CHECKED or UNCHECKED in all capital letters, respectively.
Use the PlanScreen business rule any time the amount or piece of information is constant for the plan you are configuring. This will allow rules to all use this value in a constant fashion. If the information should change, then only one change must be made. This eliminates the need to update every transaction or rule that hard coded constant plan values.
Use PlanFields any time a particular fact, amount, threshold value, etc., is tied to a product (plan), and is used in a constant fashion across multiple transactions and/or calculations. It should be defined in PlanFields rather than defined repeatedly in a transaction or calcGeneral XML.
XPATHs should always use the fully qualified path.
Example: /Valuation/Policy/FundList/Fund[FundGUID='$$$LoanCreditFundGUID1$$$']/CashValue not //FundList/Fund[FundGUID=’$$$LoanCreditFundGUID1$$$’]/CashValue
When using TYPE=”FUNCTION”, do not use double quotes around the fields.
Quotes aren’t needed if a MathIF is used when comparing numbers.
Example: ActiveSegmentCode=01
The use of Blank is not needed when blank is a previously defined field. Instead use two single quotes.
Use Data Dictionary defined field names for consistency across products.
Don’t define MathVariables that aren’t used anywhere.
Use Valuation:Policy to retrieve values from valuation when possible.
When trying to retrieve CashValue from PolicyValues use TYPE=”FIELD” Valuation:Policy:CashValue.
Capitalize the words AND and OR when writing SQL. Use sentence case And and Or when configuring anything other then SQL statements.
A MathVariable should define its VARIABLENAME and TYPE attributes prior to any other attribute.
Example: <MathVariable VARIABLENAME=”Example” TYPE=”SQL” DEFAULT =”01”>
Only use ROUND when there is a reason.
Consolidate logic into a single MathVariable where appropriate.
Example: Where an intermediate calculation value is not needed &endash; don’t break the calculation into many steps.
Suggestions for when to use MathIF versus TYPE=”IIF”:
Use MathIF when the value(s) of one or more MathVariables is conditional. That is &endash; if the condition is not met, the MathVariables do not need to be defined.
MathIF also helps avoid multiple IIF’s when the desired result is one value.
Use IIF if this specific MathVariable always needs to be evaluated but the resulting value is conditional between two values.
Multifields
Multifields must be treated separately from fields in the regular part of the transaction. You can’t cross reference fields.
Any Multifield field validation,
other than verifying whether a field was left blank, must be done in the
math of the transaction.
Spawns
Pass spawn fields in the same sequence as configured in the transaction that is being spawned.
Any GUID fields passed as spawn fields should be disabled in the spawned transaction.
Spawned transactions should use SPAWNCODE=”01” when the spawned transaction is effective on the same day as the spawning transaction.
See AsCode for other spawn code values.
DataTypes in spawn fields must match DataTypes in receiving fields.